﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace lab2
{
    public partial class MainForm : Form
    {
        reisy m_reisy;
        passengers m_passengers;
        AddPass m_addPass;
        addReis m_addReis;
        addBilet m_addBilet;
        bilets m_bilets;

        public MainForm()
        {
            InitializeComponent();
        }

        private void просмотретьToolStripMenuItem_Click1(object sender, EventArgs e)
        {
            m_reisy = new reisy();
            m_reisy.Show();
            m_reisy.testFunction();
        }

        private void MainForm_Load(object sender, EventArgs e)
        {

        }

        private void просмотретьToolStripMenuItem_Click2(object sender, EventArgs e)
        {
            m_passengers = new passengers();
            m_passengers.Show();
            m_passengers.testFunction();
        }

        private void добавитьToolStripMenuItem_Click(object sender, EventArgs e)
        {

            m_addPass = new AddPass();
            m_addPass.Show();
        }

        private void добавитьToolStripMenuItem1_Click(object sender, EventArgs e)
        {
            m_addReis = new addReis();
            m_addReis.Show();

        }

        private void купитьБилетToolStripMenuItem_Click(object sender, EventArgs e)
        {
            m_addBilet = new addBilet();
            m_addBilet.Show();
            m_addBilet.setPass();
            m_addBilet.setReis();
        }

        private void посмотретьБилетыToolStripMenuItem_Click(object sender, EventArgs e)
        {
            m_bilets = new bilets();
            m_bilets.Show();
            m_bilets.testc();
        }


    }
}
